package com.dingyx.ps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dingyx.ps.model.entity.EnterpriseDTO;
import com.dingyx.ps.model.po.EnterpriseListPO;
import org.apache.ibatis.annotations.Param;

public interface EnterpriseMapper extends BaseMapper<EnterpriseDTO> {

    EnterpriseDTO selectByUserId(Integer userId);

    EnterpriseDTO selectByTenantCode(String tenantCode);

    /**
     * 查询默认税率的一个实例
     * @return
     */
    EnterpriseDTO defaultRateDemo();

    IPage<EnterpriseDTO> selectPageByParam(@Param("page")Page page, @Param("po") EnterpriseListPO param);
}
